package com.example.museum.entity;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Orders implements Serializable {

    private Long id;
    // 订单号
    private String number;

    private Long userId;
    // 订单总金额
    private BigDecimal totalAmount;
    // 订单状态（unpaid待付款/paid已付款/pending待发货/shipping配送中/completed已完成/cancelled已取消）
    private String status;
    // 支付方式
    private String paymentMethod;
    // 创建时间
    private LocalDateTime createTime;
    // 更新时间
    private LocalDateTime updateTime;
    // 联系电话
    private String phone;
    // 收货地址
    private String address;
    // 备注信息
    private String remark;
    // 运费
    private BigDecimal shippingFee;

    private LocalDateTime paymentTime;

    private LocalDateTime shippingTime;

    private LocalDateTime completionTime;

//    private LocalDateTime startTime;
//
//    private LocalDateTime endTime;
}